<?php

$TPL_PATH = dirname(__FILE__) . "/tpl/";
$PHP_PATH = dirname(__FILE__) . "/php/";

$page = $URLC->getHtmlPage();
if(file_exists($TPL_PATH . $page . ".tpl")){
	$out = strtr(file_get_contents("template/main.tpl"),
	array(
	'{CONTENT}' => file_get_contents($TPL_PATH . $page . ".tpl"),
		)
	);
}
else{
	header("Location:/");
}
